<?php

namespace App\Enums;

use BenSampo\Enum\Enum;

/**
 * @method static static OptionOne()
 * @method static static OptionTwo()
 * @method static static OptionThree()
 */
final class UserStatus extends Enum
{
    //状态:0=离职,1=在职
    const DEPART =   0;
    const WORKING =   1;


    public static function getDescription(mixed $value): string
    {
        return match ($value) {
            self::DEPART => '离职',
            self::WORKING => '在职',
            default => self::getKey($value),
        };
    }
}
